package com.bit.demo.springlogdemo.controller;

import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Slf4j
@RequestMapping("/log2")
@RestController
public class LogController2 {
    @RequestMapping("/log")
    public void log() {
        log.debug("log debug");
        log.info("log info");
        log.warn("log warn");
        log.error("log error");
    }
}
